<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>巨石汇管理平台</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<link rel="stylesheet" href="css/common.css" type="text/css" />
	<script type="text/javascript" src="js/jquery-1.7.1.js"></script>
	<script type="text/javascript">
		function checkLogin(s){
//			alert(s);
			if(s == undefined || s==""){
				alert("请您登录！谢谢！");
				
				if($.browser.msie){// IE 必须使用别的方法进行跳转
					document.location.href = '../toLogin.action';
				}else{
					document.location.href = 'toLogin.action';
				}
			}else{
				alert("欢迎回来");
				//document.location.href = 'admin/index.html';
			}
		}
	</script>
  </head>
  <frameset rows="50,*" cols="*" frameborder="no" border="0" framespacing="0"  onload="javascript:checkLogin('${sessionScope.admin.username}');">
  <frame src="admin/topframe.html" name="topFrame" frameborder="no" scrolling="no" noresize="noresize" id="topFrame" title="topFrame" />
  <frameset name="myFrame" id="myFrame" cols="199,7,*" frameborder="no" border="0" framespacing="0">
    <frame src="admin/leftframe.html" name="leftFrame" frameborder="no" scrolling="no" noresize="noresize" id="leftFrame" title="leftFrame" />
	<frame src="admin/switchframe.html" name="midFrame" frameborder="no" scrolling="no" noresize="noresize" id="midFrame" title="midFrame" />
    <frameset rows="59,*" cols="*" frameborder="no" border="0" framespacing="0">
         <frame src="admin/mainframe.jsp" name="mainFrame" frameborder="no" scrolling="no"  noresize="noresize" id="mainFrame" title="mainFrame" />
         <frame src="admin/manframe.html" name="manFrame" frameborder="no" id="manFrame" title="manFrame" />
     </frameset>
  </frameset>
</frameset>
<noframes>
<body>
</body>
</noframes>
</html>
